#include "stdio.h"
/*
* I_1_2.c
*
*  Created on: April, 9, 2009
*      Author: yimingliu@fudan.edu.cn
*/
void funI_1_2()
{
	int a[3][4]={{1,2,3,4},{5,6,7,8},{9,10,11,12}};
	int b[4][3],i,j;
	for(i=0;i<=2;i++)
	{
		for(j=0;j<=3;j++)
		{
			b[j][i]=a[i][j];
		}
	}
	printf("array b:\n");
	for(i=0;i<=3;i++)
	{
		for(j=0;j<=2;j++)
		{
			printf("%4d",b[i][j]);
		}
		printf("\n");
	}

}